# 使用nginx作为基础镜像
FROM nginx:alpine

# 删除nginx默认配置
RUN rm -rf /usr/share/nginx/html/*

# 复制构建好的静态文件到nginx目录
COPY dist/ /usr/share/nginx/html/

# 复制nginx配置文件
COPY nginx.conf /etc/nginx/nginx.conf

# 暴露8848端口
EXPOSE 8848

# 启动nginx
CMD ["nginx", "-g", "daemon off;"]